home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 1 (Walnut Creek)
/
Aminet - June 1993 [Walnut Creek].iso
/
aminet
/
comm
/
fido
/
wpl_intro.lzh
/
rexx
/
fidopoll.rexx
< prev
next >
Wrap
OS/2 REXX Batch file
|
1993-02-26
|
2KB
|
58 lines
/* FIDOPoll.rexx For use with WPL V0.82+ */
/*
* Simple script to call all fidonet sites who have pending outbound mail
*
* Uses xferq.Library by David Jones (aa457@freenet.carleton.ca)
*
* Russell McOrmond rmcormon@ccs.carleton.ca aa302@freenet.carleton.ca
* FidoNet 1:163/109 Net Support: (613) 230-2282 WPL Support 1:1/139
*
*/
Options RESULTS
Options failat 100
/* iterate through nodes who have work */
sitelist=XfqGetSiteList()
call XfqWalkSession(sitelist,sitearray)
say "There are "sitearray.numentries" sites in the queue"
do loop = 1 to sitearray.numentries
say 'loop=' loop 'Site:' sitearray.loop
MaxPri = XfqMaxSitePri(sitearray.loop)
addrtags.XQ_Mandatory = 511 /* XQADDR_ANYTHING */
addrtags.XQ_Optional = 511 /* XQADDR_ANYTHING */
System = XfqPutAddress(sitearray.loop,addrtags)
System = UPPER( system )
say 'system="'System'" Priority:'MaxPri
if (MaxPri < 1) | (MaxPri > 120) then Iterate
if (left(System,13) ~= 'FIDONET#1:163') & (left(System,13) ~= 'FIDONET#1:243') then Iterate
if (System == 'FIDONET#1:163/139.0') then Iterate
if (System == 'FIDONET#1:163/109.0') then Iterate
if (System == 'FIDONET#1:163/109.15') then Iterate
if (System == 'FIDONET#1:163/524.0') then Iterate
if (System == 'FIDONET#1:163/109.11') then Iterate
Address SLAVE2
'call '||System
adelay= Getclip('wsched-delay')
if ( words(adelay) == 1) then do
say 'Doing delay='adelay 'seconds'
call delay (50*adelay) /* delay for 'quantum' seconds */
end
end
call XfqDropObject(sitelist)
call XfqClose()
Exit 0